package com.adcc.foc.IDao;

import com.adcc.foc.domain.AuthRole;

import java.util.List;

public interface AuthRoleMapper {
    int deleteByPrimaryKey(String roleId);

    int insert(AuthRole record);

    int insertSelective(AuthRole record);

    AuthRole selectByPrimaryKey(String roleId);

    int updateByPrimaryKeySelective(AuthRole record);

    int updateByPrimaryKey(AuthRole record);

    //通过用户id查询登录者是否有维护用户和维护组织结构的权限
    List<AuthRole> findByUserId(String userId);

    //获取所有权限
    List<AuthRole> findAll();
}